<?php defined('SYSPATH') or die('No direct script access.'); ?>


<?php echo Form::open('admin/merchmanagement/items/edit/'.$item->id,
		array('method' => 'POST', 'enctype' => 'multipart/form-data'))?>
<?php echo Form::hidden('category_id', $category->id);?>
<?php echo Form::label('name', 'Name');?>
<?php echo Form::input('name', $item->name);?>
<?php if(Arr::get($errors, 'name')):?>
<?php echo Form::label('name', Arr::get($errors, 'name'), array('class' => 'error'));?>
<?php endif;?>

<?php echo Form::label('price', 'Price');?>
<?php echo Form::input('price', number_format($item->price, 2));?>
<?php if(Arr::get($errors, 'price')):?>
<?php echo Form::label('price', Arr::get($errors, 'price'), array('class' => 'error'));?>
<?php endif;?>

<?php echo Form::label('restock_price', 'Restock Price');?>
<?php echo Form::input('restock_price', number_format($item->restock_price, 2));?>
<?php if(Arr::get($errors, 'restock_price')):?>
<?php echo Form::label('restock_price', Arr::get($errors, 'restock_price'), array('class' => 'error'));?>
<?php endif;?>

<?php echo Form::label('description', 'Description');?>
<?php echo Form::textarea('description', $item->description);?>
<?php if(Arr::get($errors, 'description')):?>
<?php echo Form::label('description', Arr::get($errors, 'description'), array('class' => 'error'));?>
<?php endif;?>

<br><br>

<?php echo Form::submit('submit', 'Submit')?>
<?php echo Form::close();?>